From 386f7c3f662a94109373dd9fa9c19a505e12931e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=3D=3FUTF-8=3Fq=3FFabi=3DC3=3DA1n=3D20Ezequiel=3D20Gallina?= =?utf8?q?=3F=3D?= Date: Thu, 17 May 2012 00:03:01 -0300 Subject: [PATCH] Fixed incorrect syntax highlighting for variable assignations --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 69df0535054..76901aaa69e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -278,7 +278,8 @@ (when (re-search-forward re limit t) (while (and (not (equal (nth 0 (syntax-ppss)) 0)) (re-search-forward re limit t))) - (if (equal (nth 0 (syntax-ppss)) 0) + (if (and (equal (nth 0 (syntax-ppss)) 0) + (not (equal (char-after (point-marker)) ?=))) t (set-match-data nil))))) (1 font-lock-variable-name-face nil nil)) -- 2.30.2